/*
 * check_boundary_error.c
 *
 *  Created on: Feb 13, 2014
 *      Author: Rohit
 */
/*
 * Function: check_boundary_error
 *
 * Inputs:	address
 * Outputs: 0 if address is even
 *			1 if address is odd
 * This function checks whether the address is odd or even.
 * If even, no boundary error occurs because the address is word alogned.
 * If odd, a boundary error is present and accordingly reported.
 */
#include "includes.h"

unsigned short check_boundary_error(unsigned short address)
{
	if(address % 2 == 0)
		return 0;
	else
		return 1;
}
